package com.itheima.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/users")
@Slf4j
public class UserController {

    @GetMapping("/{id}")
    public String look(@PathVariable Integer id){
        log.info("版本2获取到id:{}",id);

        System.out.println("版本2"+id);

        return "版本2 hello, Linux :"+id;
    }

}
